var input = document.querySelectorAll('input')
var btn = document.querySelector('button')

btn.onclick = () => {
    axios.get('/user/register' , {params : {phone : input[0].value , pass : input[1].value}}).then((res)=>{
        console.log(input[0].value);
        console.log(input[1].value);
        console.log(res.data);
        if(res.data.code == 200){
            alert('登陆成功')
            location.href = '/index.html'
        }else{
            alert(res.data.mas)
        }
    })
}